<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Danh sách bài viết</title>

<script src="<?php echo $this->baseUrl();?>/jquery/jqueryui/jquery-1.6.4.min.js"></script>

</head>

<body>
<?php
$articles = $this->articles;
foreach($articles as $article)
{
    echo '<table width="100%">';
    echo 	'<tr>';
    echo 		'<td width="60%">';
    echo			"<b><a href=\"show?id={$article['ID']}\">{$article['Title']}</a></b><br>";
    echo			"Chuyên mục : {$article['CategoryName']}<br>";
    echo		'</td>';
    echo 		'<td width="50%" align="right">';
    //echo			"Author : {$article['CreatedByID']}<br>";
    echo			"Ngày tạo : {$article['CreatedTime']}<br>";
    echo		'</td>';
    echo 	'</tr>';
    
    //Giới thiệu
    echo 	'<tr>';
    echo 		'<td colspan="2"';
    echo			"<span>{$article['Intro']}</span><br>";
    echo		'</td>';
    echo 	'</tr>';
    
    
    
    echo '</table>';

}
?>
</body>
</html>